home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Tools / statgen / Makefile < prev    next >
Encoding:
Makefile  |  1991-12-18  |  1.6 KB  |  84 lines

  1. # Stats generation stuff
  2. #
  3. ############################################################
  4. #
  5. # @(#) $Header: /xtel/pp/pp-beta/Tools/statgen/RCS/Makefile,v 6.0 1991/12/18 20:33:14 jpo Rel $
  6. #
  7. # $Log: Makefile,v $
  8. # Revision 6.0  1991/12/18  20:33:14  jpo
  9. # Release 6.0
  10. #
  11. #
  12. ############################################################
  13. #
  14. # Definitions
  15. #
  16. ############################################################
  17.  
  18.  
  19.  
  20. SRCS    = statp.c
  21. OBJS    = statp.o
  22.  
  23. HEADERS    =    ../../h
  24. LIBPP    =    ../../Lib/libpp.a
  25. LIBS    =    $(LIBPP) $(LIBSYS)
  26.  
  27. CFLAGS    = $(CCOPTIONS) -I$(HEADERS)
  28. LDFLAGS    = $(LDOPTIONS)
  29.  
  30. LLFLAGS = $(LINTFLAGS) -I$(HEADERS)
  31. LINTLIBS = ../../Lib/llib-lpp.ln $(LINTISODE)
  32.  
  33. ############################################################
  34. #
  35. # Building Rules
  36. #
  37. ############################################################
  38.  
  39.  
  40. default: xstatp line.awk
  41.  
  42. statp: xstatp
  43.     @true
  44. xstatp: $(OBJS)
  45.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  46.  
  47. install: inst-statp
  48.  
  49. inst-statp: $(TOOLDIR)/statp
  50. $(TOOLDIR)/statp: xstatp
  51.     -$(BACKUP) $@ zxstatp
  52.     rm -f $@
  53.     $(INSTALL) xstatp $@
  54.     -$(CHMOD) $(PGMPROT) $@
  55.     -$(CHOWN) $(PPUSER) $@
  56.     -@ls -ls $@
  57.     -@echo "statp tool installed normally"; echo ""
  58.  
  59. clean: tidy
  60. tidy:
  61.     rm -f $(OBJS) core a.out Makefile.old xstatp line.awk
  62.  
  63. lint: l-stat
  64.  
  65. l-stat: $(SRCS)
  66.     $(LINT) $(LLFLAGS) $(SRCS)
  67.  
  68. depend:
  69.     $(DEPEND) -I$(HEADERS) $(SRCS)
  70.  
  71. lex.o:  y.tab.h
  72.  
  73. line.awk: line.nawk
  74.     sed -e '/^#BEGIN(nawk)/,/^#END(nawk)/d' \
  75.         -e 's/nawk/awk/' \
  76.         -e 's/bytes *(\([^)]*\))/\1/g' $? > $@ || rm $@
  77.     chmod 755 $@
  78.  
  79. ############################################################
  80. #
  81. # End of Building Rules
  82. #
  83. ############################################################
  84.